//
//  ViewController.m
//  Home
//
//  Created by dllo on 16/5/10.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "PicUIscorllView.h"
#import "PicView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    [self createScrollView];
}

- (void)createScrollView{
    
    PicUIscorllView *scroll = [[PicUIscorllView alloc]initWithFrame:CGRectMake(0, 0, 500, 1000)];
    [self.view addSubview:scroll];
    [scroll release];
    scroll.backgroundColor = [UIColor cyanColor];
    
    PicView *view = [PicView picviewWithframe:CGRectMake(0, 100, 50, 50) title:@"dad" title:@"dad" imageview:@"/Users/dllo/Desktop/162.png"];
    
    
    PicView *view1 = [PicView picviewWithframe:CGRectMake(0, 200, 50, 50) title:@"dad仨大叔大婶 " title:@"大大大" imageview:@"/Users/dllo/Desktop/162.png"];

    
    PicView *view2 = [PicView picviewWithframe:CGRectMake(0, 300, 50, 50) title:@"LEETeaMin" title:@"hanguo" imageview:@"3.jpg"];
    
    
    PicView *view3 = [PicView picviewWithframe:CGRectMake(0, 400, 50, 50) title:@"dad" title:@"dad" imageview:@"/Users/dllo/Desktop/162.png"];
    
    
    PicView *view4 = [PicView picviewWithframe:CGRectMake(0, 500, 50, 50) title:@"dad仨大叔大婶 " title:@"大大大" imageview:@"/Users/dllo/Desktop/162.png"];
    

    PicView *view5 = [PicView picviewWithframe:CGRectMake(0, 0, 50, 50) title:@"LEETeaMin" title:@"hanguo" imageview:@"3.jpg"];
    

    
    PicView *view6 = [PicView picviewWithframe:CGRectMake(0, 600, 50, 50) title:@"dad" title:@"dad" imageview:@"/Users/dllo/Desktop/162.png"];

    PicView *view7 = [PicView picviewWithframe:CGRectMake(0, 700, 50, 50) title:@"dad仨大叔大婶 " title:@"大大大" imageview:@"/Users/dllo/Desktop/162.png"];
    
    
    PicView *view8 = [PicView picviewWithframe:CGRectMake(0, 800, 50, 50) title:@"LEETeaMin" title:@"hanguo" imageview:@"3.jpg"];
    
    

    
    PicView *view9 = [PicView picviewWithframe:CGRectMake(0, 900, 50, 50) title:@"dad" title:@"dad" imageview:@"/Users/dllo/Desktop/162.png"];
    

    
    PicView *view10 = [PicView picviewWithframe:CGRectMake(0, 1000, 50, 50) title:@"dad仨大叔大婶 " title:@"大大大" imageview:@"/Users/dllo/Desktop/162.png"];
    
    [scroll addpictures:@[view]];
    
    [scroll addpictures:@[view,view1,view2,view3,view4,view5,view6,view7,view8,view9,view10]];
    
   
    
    
    
    
    
    
    
}










@end
